﻿@model Doan.Forum.Models.ChangePasswordModel
@{
    ViewBag.Title = "Change Password";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if (ViewBag.ChangePassErr != null)
{
    <div class="alert alert-block fade in alert-error alert-error">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        @ViewBag.ChangePassErr
    </div>
}
@if (ViewBag.ChangePassSucc != null)
{
    <div class="alert alert-block fade in alert-success">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        @ViewBag.ChangePassSucc
    </div>
}

@using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post))
{
    <legend class="span7">Thay đổi mật khẩu</legend>
    <div class="box-logon">
        <div class="editor-label ">
            <span>Mật khẩu cũ</span>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OldPassword)
            @Html.ValidationMessageFor(model => model.OldPassword)
        </div>
        <div class="editor-label ">
            <span>Mật khẩu mới</span>
        </div>
          <div class="editor-field">
              @Html.EditorFor(model => model.NewPassword)
              @Html.ValidationMessageFor(model => model.NewPassword)
          </div>
          <div class="editor-label ">
            <span>Nhập lại mật khẩu mới</span>
        </div>
          <div class="editor-field">
              @Html.EditorFor(model => model.ConfirmPassword)
              @Html.ValidationMessageFor(model => model.ConfirmPassword)
          </div>
        <div class="btnNewTopic">
            <input type="submit" value="Đồng ý"  class="btn btn-success btn-large right"/>
        </div>
    </div>
}